/**
 * 系统设置路由
 */

import EmptyLayout from '@/layout/EmptyLayout'

const userOrganizationRouter = {
  path: 'user',
  component: EmptyLayout,
  redirect: '/upms/user',
  name: 'users',
  meta: { title: '用户设置', icon: 'menuUser' },
  children: [{
    path: '',
    name: 'userManager',
    component: () => import('@/views/upms/user/user/index'),
    meta: { title: '用户管理', icon: 'menuUser' }
  }, {
    path: 'unit',
    name: 'userUnit',
    component: () => import('@/views/upms/user/unit/index'),
    meta: { title: '机构部门', icon: 'menuUnit' }
  }, {
    path: 'role',
    name: 'roleManager',
    component: () => import('@/views/upms/user/role/index'),
    meta: { title: '角色管理', icon: 'menuRole' }
  }, {
    path: 'post',
    name: 'postManager',
    component: () => import('@/views/upms/user/post'),
    meta: { title: '岗位管理', icon: 'menuPost' }
  }, {
    path: 'menu',
    name: 'menuManager',
    component: () => import('@/views/upms/user/menu'),
    meta: { title: '菜单管理', icon: 'menuPermission' }
  }]
}

export default userOrganizationRouter
